Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | function getTimeRemaining(endtime) { |
||
23 | function updateClock() { |
||
24 | var t = getTimeRemaining(endtime); |
||
25 | |||
26 | daysSpan.innerHTML = t.days; |
||
27 | hoursSpan.innerHTML = ('0' + t.hours).slice(-2); |
||
28 | minutesSpan.innerHTML = ('0' + t.minutes).slice(-2); |
||
29 | secondsSpan.innerHTML = ('0' + t.seconds).slice(-2); |
||
30 | |||
31 | if (t.total <= 0) { |
||
32 | clearInterval(timeinterval); |
||
33 | } |
||
34 | } |
||
35 | |||
42 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.